<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>角色管理</title>
</head>

<body>
<table width="100%" border="1">
  <tr>
    <th scope="col">ID</th>
    <th scope="col">角色名称</th>
    <th scope="col">角色描述</th>
    <th scope="col">开启状态</th>
    <th scope="col">操作</th>
  </tr>
  <?php if(is_array($role)): $i = 0; $__LIST__ = $role;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
    <td><?php echo ($vo["id"]); ?></td>
    <td><?php echo ($vo["name"]); ?></td>
    <td><?php echo ($vo["remark"]); ?></td>
    <td><?php if($vo['status']): ?>开启<?php else: ?>关闭<?php endif; ?></td>
    <td><a href="<?php echo U('admin/Rbac/access',array('rid'=>$vo['id']));?>">配置权限</a></td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
</body>
</html>